
<table class="table">
<thead>
	<tr>
		<td class="col-sm-1" rowspan="2">Date</td>
		<td class="col-sm-1" rowspan="2">Time</td>
		<td class="col-sm-1" colspan="3">Customer 1</td>
		<td class="col-sm-1" colspan="3">Customer 2</td>
		<td class="col-sm-1" colspan="3">Mandi</td>
	</tr>
	<tr>
		<td class="col-sm-1">Quantity</td>
		<td class="col-sm-1">Rate</td>
		<td class="col-sm-1">Rent</td>
		<td class="col-sm-1">Quantity</td>
		<td class="col-sm-1">Rate</td>
		<td class="col-sm-1">Rent</td>		
		<td class="col-sm-1">Quantity</td>
		<td class="col-sm-1">Rate</td>
		<td class="col-sm-1">Rent</td>
	</tr>
</thead>
<tbody>
	
	<?php
		$startTime = strtotime($startDate);
		$endTime = strtotime($endDate);
		$i = 1;
	?>
	<?php while ($startTime <= $endTime) { ?>
		<tr rowIndex="<?php echo $i; ?>">
			<td rowspan="2"><?php echo date('d-m-Y',$startTime); ?></td>
			<td>Day</td>
			<td class="col-sm-1">Quantity</td>
			<td class="col-sm-1">Rate</td>
			<td class="col-sm-1">Rent</td>
			<td class="col-sm-1">Quantity</td>
			<td class="col-sm-1">Rate</td>
			<td class="col-sm-1">Rent</td>
			<td class="col-sm-1">Quantity</td>
			<td class="col-sm-1">Rate</td>
			<td class="col-sm-1">Rent</td>
		</tr>
		<?php $i++ ?>
		<tr rowIndex="<?php echo $i; ?>">
			<td>Night</td>
			<td class="col-sm-1">Quantity</td>
			<td class="col-sm-1">Rate</td>
			<td class="col-sm-1">Rent</td>
			<td class="col-sm-1">Quantity</td>
			<td class="col-sm-1">Rate</td>
			<td class="col-sm-1">Rent</td>			
			<td class="col-sm-1">Quantity</td>
			<td class="col-sm-1">Rate</td>
			<td class="col-sm-1">Rent</td>
		</tr>
	<?php $startTime = strtotime("+1 day", $startTime); ?>
	<?php $i++ ?>
	<?php } ?>
<tbody>
</table>